package com.big_data_studio.service;

import com.big_data_studio.dto.RegisterParm;
import com.big_data_studio.dto.UserParm;
import com.big_data_studio.entity.user.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.big_data_studio.util.general.R;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiao_jie
 * @since 2022-09-12
 */
public interface IUserService extends IService<User> {

    R userLogin(User user, HttpServletRequest request);

    R userLogOut(String token);

    R getOne(Integer id);

    R list(UserParm userParm);

    R add(User user);

    R update(User user);

    R del(Integer id);

    R sendQQMailCode(String email);

    R register(RegisterParm registerParm);
}
